<?php
/* SVN FILE: $Id: core.php 53 2009-09-07 02:15:29Z phamshantuyet@gmail.com $ */
/**
*
* @author $Author: phamshantuyet@gmail.com $
* @version $Revision: 53 $
* @lastrevision $Date: 2009-09-07 09:15:29 +0700 (Mon, 07 Sep 2009) $
* @modifiedby $LastChangedBy: phamshantuyet@gmail.com $
* @lastmodified $LastChangedDate: 2009-09-07 09:15:29 +0700 (Mon, 07 Sep 2009) $
* @filesource $URL: https://ladybirdphp.googlecode.com/svn/trunk/website/ocm/app/config/core.php $
*/
$_FW24H_CONFIG_['server'] = 'localhost';
$_FW24H_CONFIG_['username'] = 'root';
$_FW24H_CONFIG_['password'] = '123456as';
$_FW24H_CONFIG_['database'] = 'fwadmin';
$_FW24H_CONFIG_['driver'] = 'mysql';

$_FW24H_CONFIG_['default_controller'] = 'home';
$_FW24H_CONFIG_['default_action'] = 'index';

$_FW24H_CONFIG_['default_layout'] = 'layout';

$_FW24H_QUERIES_ = array();
$_FW24H_ERROR_ = false;

$_FW24H_USE_DB = true;

$_FW24H_ERROR_HANDLER = '_myErrorHandler'; // khai bao ham kiem soat loi

define( 'DEBUG_MODE', true);

/*
define( 'const_Static_Data_Url', '/ocm/');	// noi luu tru cac static data, img. flash, js,...
define( 'const_Web_Url', '/ocm/');	// dia chi cua website,...
*/

define( 'BASE_URL', '/ocm/');	// dia chi cua website,...

define( 'IMAGE_URL', '/ocm/');	// url cho image data

define( 'STATIC_URL', '/ocm/');	// url cho static data

define( 'DISPLAY_ERROR', true); // hien thi loi

define( 'ERROR_URL', 'http://24h.com.vn/'); // url se chuyen den khi co loi

//define( 'CONST_CACHE_SQL', 'c:/_tmp/'); 
define( 'CACHE_SQL_DIR', 'c:/_tmp/'); 

define( 'CACHE_LITE_DIR', 'c:/_tmp/'); 

define( 'BLOCK_NO_CACHE_TIME', 19000); 

define( 'TIME_REMEMBER_ME', 2592000); // thoi gian nho mat khau

$_FW24H_PAGETITLE = '24H FrameWork';

/**
 * Not empty.
 */
define( 'VALID_NOT_EMPTY', '/.+/');

/**
 * Numbers [0-9] only.
 */
define( 'VALID_NUMBER', '/^[-+]?\\b[0-9]*\\.?[0-9]+\\b$/');

/**
 * A valid email address.
 */
define( 'VALID_EMAIL', '/\\A(?:^([a-z0-9][a-z0-9_\\-\\.\\+]*)@([a-z0-9][a-z0-9\\.\\-]{0,63}\\.(com|org|net|biz|info|name|net|pro|aero|coop|museum|[a-z]{2,4}))$)\\z/i');

/**
 * A valid year (1000-2999).
 */
define( 'VALID_YEAR', '/^[12][0-9]{3}$/');

define( 'VALID_USERNAME', '/^[a-z0-9_-]{6,16}$/i');

define( 'VALID_TELEPHONE', '/\(?\d{3,6}\)?[0-9 -]{6,10}(?: ?#\d{3,6})?/');

define( 'VALID_IP_ADDRESS', '/\d{1,3}(?:\.\d{1,3}){3}/');

// The domain (and the port) part of a URL. Just the domain, not the path, anchor or query string.
define( 'VALID_DOMAIN', '/[a-z]{3,}:\/\/[a-z0-9-]+\.[.a-z0-9-]+(?::\d*)?/i');

if ( !defined( 'E_STRICT')) {
	define( 'E_STRICT', 2048);
}

$URL_MAP['news'] = 'user/login/';
$URL_MAP['news2'] = 'user/index/';
